using Windows.Media.Audio;

namespace Audio
{
    public delegate void RecorderFrameHandler(IPcmData pcm);
    public delegate void RecorderFrameByteHandler(byte[] pcm);
    public delegate void RecorderEventHandler();
    public delegate void AudioNodeHandler(IAudioNode node);
    public interface IRecorder
    {
        event RecorderFrameHandler FrameArrived;
        event RecorderEventHandler Started;
        event RecorderEventHandler Stopped;
        event RecorderEventHandler ErrorOccured;
        event AudioNodeHandler NodeCreated;
        void Start();
        void Stop();
        bool IsRecording();
    }
}
